<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>
    <script type="text/javascript">

        $(function () {
            $('tbody tr:odd').addClass("trLight");
            $(".select-all").click(function () {
                if ($(this).attr("checked")) {
                    $(".checkBox input[type=checkbox]").each(function () {
                        $(this).attr("checked", true);
                    });
                } else {
                    $(".checkBox input[type=checkbox]").each(function () {
                        $(this).attr("checked", false);
                    });
                }
            });
        });
    </script>
    <script type="text/javascript">
        function back() {
// 	history.go(-1);
            window.location.href = "<%=path%>/html/ypfflist.jsp";
        }

        function ypff() {
            window.location.href = "<%=path%>/html/main.jsp";
        }
    </script>
    <style type="text/css">
        body {
            background: #FFF
        }
    </style>
</head>
<body>
<div id="contentWrap">
    <!--表格控件 -->
    <div id="widget table-widget">
        <div class="pageTitle">医生开药列表</div>
        <div class="pageColumn">
            <table>
                <thead>
                <th width="">挂号号</th>
                <th width="">药品ID</th>
                <th width="">药品名称</th>
                <th width="">数量</th>
                <th width="">描述</th>
                </thead>
                <tbody>
                <c:forEach items="${prescribes}" var="prescribes">
                    <tr>
                        <td>${prescribes.roid}</td>
                        <td>${prescribes.drugsid}</td>
                        <td>${prescribes.drugsName}</td>
                        <td>${prescribes.num}</td>
                        <td>${prescribes.descs}</td>
                    </tr>

                </c:forEach>
                <tr>
                    <td colspan="5"><input type="button" onclick="ypff()" value="发放药品"/>&nbsp;<input type="button"
                                                                                                     value="返回"
                                                                                                     onclick="back()"/>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div><!-- #widget -->
</div>
</body>
</html>

